package backboneCode;

import java.util.ArrayList;
import java.util.List;

public class RuleSet{

	private List<Rules> ruleSet;
	private String typeOfRuleSet;
	
	public RuleSet(List<Rules> ruleSet, String typeOfRuleSet) {
		this.ruleSet = ruleSet;
		this.typeOfRuleSet = typeOfRuleSet;
	}
	
	public RuleSet(RuleSet copy) {
		this.typeOfRuleSet = copy.typeOfRuleSet;
		this.ruleSet = new ArrayList<Rules>(); 
		if (copy.ruleSet != null)
			for (Rules rule : copy.ruleSet) {
				this.ruleSet.add(new Rules(rule));
			}
	}
	
	public List<Rules> GetRuleSet() {
		return ruleSet;
	}
	
	public String GetTypeOfRuleSet() {
		return typeOfRuleSet;
	}
}
